<?php
/**
 * Created by JetBrains NetBeans.
 * User: yinyancai
 * Date: 13-3-14 下午4:44
 * To change this template use File | Settings | File Templates.
 */
if (!defined('IN_MOBILE_API')) {
    exit('Access Denied');
}
include_once 'forum.php';
class cloud_api {
    function common() { }

    function output() {
        if (empty($_GET['cuid']) || empty($_GET['coid']) || empty($_GET['cpid'])) {
            $variable = array(
                'code' => 1001,
                'messagestr' => lang('plugin/cloud', '1001'),
            );
            cloud_core::result(cloud_core::variable($variable));
        }

        $data = C::t('#cloud#cloud_product_assess')->fetch_user_order_info($_GET['cuid'], $_GET['coid'], $_GET['cpid']);

        if (empty($data)) {
            $variable = array(
                'code' => 11020,
                'messagestr' => lang('plugin/cloud', '11020'),
            );
            cloud_core::result(cloud_core::variable($variable));

        }else{
            $variable = array(
                'code' => 11021,
                'messagestr' => lang('plugin/cloud', '11021'),
            );
            cloud_core::result(cloud_core::variable($variable));
        }

    }
}

?>

